package com.grape.enums;

import lombok.Getter;

/**
 * 类描述： ImResultEnum类
 *
 * @author  putao
 * @email   2628279194@qq.com
 */
@Getter
public enum IMResultEnums {

    /** 类型错误 */
    TYPE_ERROR(null, false, null, null, "类型错误"),

    /** 通知 */
    NOTICE("notice", true, null, "notice", "通知"),

    /** 账号已在其他设备登录 */
    OVERRIDE("override", false, null, "override", "当前您的账号已在其他设备登录，请重新登录"),

    /** 点赞 */
    LIKE_POST("like_post", true, null, "notice", "通知"),

    /** 新消息 */
    NEW_MESSAGE("new_message", true, null, "new_message", "新消息通知"),

    /** 用户不存在 */
    USER_NOT_EXIST(null, false, null, null, "用户不存在");

    IMResultEnums(String sign, boolean success, Object data, String key, String message) {
        this.sign = sign;
        this.success = success;
        this.data = data;
        this.key = key;
        this.message = message;
    }

    /** 签名 */
    private final String sign;

    /** 是否成功 */
    private final boolean success;

    /** 数据 */
    private final Object data;

    /** key */
    private final String key;

    /** 消息 */
    private final String message;
}
